<div class="container" id="comment<?=$this->oneComment->getCommentId()?>">

    <div class="avatar">
        <? if ($this->oneComment->getUser()): ?>
            <img src="./images/upload/avatars/<?= $this->oneComment->getUser()->getImageName() ?>" alt="аватар пользователя <?=$this->oneComment->getUser()->getNickName()?>" title="<?= $this->oneComment->getUser()->getDescription() ?>"/>
        <? else:?>    
			<? $rand = rand(0, 2); ?>
            <img src="./images/upload/avatars/guest<?=$rand?>.jpeg"/>
        <? endif; ?>
    </div>
	<?$mine = ''?>
    <? if($this->oneComment->getUser()):?>
		<? if ($this->currentUser()->getUserId() && ($this->oneComment->getUser()->getUserId() == $this->currentUser()->getUserId())):?>
			<?$mine = ' mine'?>
		<? endif;?>
	<?endif;?>
	
    <div class="comment<?=$mine?>">
        <div class="propose">
            <? if($this->oneComment->getUser()):?>
                <a href="./user/<?=$this->oneComment->getUser()->getUserId();?>"><?=$this->oneComment->getUser()->getNickName()?></a> :
            <? else: ?>
                <span class="c-gray">Гость</span>
            <? endif; ?>
            
			<?= $this->oneComment->getText() ?>
        </div>
    </div>

</div>